package org.cloud.demo1.client.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.cloud.demo1.client.config.FallbackFactoryConfig;
import org.cloud.demo1.client.config.FeignLoggerConfig;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * 启用Demo1Client的FeignClient功能
 * @author wangyuan
 * @since 2019年6月2日 下午9:59:06
 *
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(value = {FeignLoggerConfig.class, FallbackFactoryConfig.class})
@EnableFeignClients(basePackages = "org.cloud.demo1.client.client")
public @interface EnableDemo1Client {

}
